//
//  myScroll.m
//  RapidMo
//
//  Created by Michael on 25.09.09.
//  Copyright 2009 Artgruppe inc. All rights reserved.
//

#import "myScroll.h"
#import "Constants.h"
#import "railwaysController.h"
#import "undergroundController.h"

@implementation myScroll
@synthesize type;


- (id)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
		// init
		type=0;
    }
    return self;
}

- (void)viewDidLoad {
	type=0;	
}

- (void)dealloc {
    [super dealloc];
}


- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {	
	//[(RapidMoViewController*)self.superview touchesBegan:touches withEvent:event];
	//printf("Began...\n");
}

- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {   
	//printf("Moving...\n");
	//[(RapidMoViewController*)self.superview touchesMoved:touches withEvent:event];
}

// touching controlling for station selection:
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {	
	//printf("Ended...\n");
	if(type==0)
		[(railwaysController*)self.superview touchesEnded:touches withEvent:event];
	else if(type==1)
		[(undergroundController*)self.superview touchesEnded:touches withEvent:event];		
}

@end
